'''
需求:给定一个学生信息列表，根据学生的成绩进行排序。学生成绩数据格式:复杂列表，元素是字典或者元组。示例:
{'sno': 101, 'sname': "小张", 'sgrade': 88},{'sno': 102, 'sname': "小王", 'sgrade': 77}{'sno': 103, 'sname': "小李",'sgrade': 99},
{'sno': 104, 'sname': "小赵",'sgrade': 66}
'''

students=[
	{'sno': 101, 'sname': "小张", 'sgrade': 88},
	{'sno': 102, 'sname': "小王", 'sgrade': 77},
	{'sno': 103, 'sname': "小李",'sgrade': 99},
	{'sno': 104, 'sname': "小赵",'sgrade': 66}
]

students_sort=sorted(students,key=lambda students:students['sgrade'],reverse=True)

for student in students_sort:
	print(student)
